package my.senix.springboot;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import my.senix.sc.AppLauncher;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySource;

import java.lang.annotation.*;

/**
 * Created by lhs on 2018/11/18.
 */

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@SpringBootTest(classes = {AppLauncher.class})
@TestPropertySource(properties= {
        "spring.autoconfigure.exclude=com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure",
        "spring.datasource.username=root",
        "spring.datasource.password=root",
        "spring.datasource.url=jdbc:mysql://localhost:3306/test",
        "spring.datasource.driverClassName=com.mysql.jdbc.Driver"})
@AutoConfigureMockMvc
public @interface MVCMocker {
}
